package com.zhuxiang.test2;

/**
 * 用户消费信息类
 */
public class ConsumerInfo {
    //统计通话时长
    private int callLengthCount;
    //统计上网流量
    private int flowCount;
    //统计每月消费
    private int moneyCount;

    public ConsumerInfo(int callLengthCount, int flowCount, int moneyCount) {
        this.callLengthCount = callLengthCount;
        this.flowCount = flowCount;
        this.moneyCount = moneyCount;
    }

    public int getCallLengthCount() {
        return callLengthCount;
    }

    public void setCallLengthCount(int callLengthCount) {
        this.callLengthCount = callLengthCount;
    }

    public int getFlowCount() {
        return flowCount;
    }

    public void setFlowCount(int flowCount) {
        this.flowCount = flowCount;
    }

    public int getMoneyCount() {
        return moneyCount;
    }

    public void setMoneyCount(int moneyCount) {
        this.moneyCount = moneyCount;
    }

    /**
     * 定义show方法，打印信息
     */
    public void show(){
        System.out.println("通话时长："+getCallLengthCount()+"分钟,上网流量："+getFlowCount()+"MB,套餐费："+getMoneyCount()+"元");
    }
}
